package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Friend;
import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResultVo;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2021/12/1 23:46
 */
public interface MovementApi {


    void publish(Movement movement);

    PageResultVo findMovement(int page, int pageSize, Long userId);
    // 查询好友动态
    List<Movement> friendMovement(Integer page, Integer pageSize, Long userId);

    // 随机查询动态
    List<Movement> randomMovements(Integer pageSize, Long userId);

    List<Movement> findMovementByPid(List<Long> pids);

    //根据id查询
    Movement findById(String movementId);


    PageResultVo findByUserId(Long uid, Integer state, Integer page, Integer pagesize);

    void update(String movementId, Integer state);
}
